/**
 * 第三方接口平台路由
 */


import Main from '@/components/main'
import parentView from '@/components/parent-view'

const thirdPartyPlatformRouter = {
  path: '/third-party-platform',
  name: 'third-party-platform',
  component: Main,
  meta: {
    keepAlive: true,
    showAlways: true,
    title: '第三方接口平台',
    access: ['ThirdPartyInterface'],
    icon: '_baobiaoguanli'
  },
  children: [
    {
      path: 'anxinshui',
      name: 'anxinshui',
      meta: {
        keepAlive: true,
        showAlways: true,
        title: '安薪税',
        access: ['AxsTask']
      },
      component: parentView,
      children: [
        {
          path: 'task-progress',
          name: 'Task_ProgressList',
          meta: {
            keepAlive: true,
            title: '任务进度',
            access: ['Task_ProgressList']
          },
          component: () => import('@/view/third-party-platform/anxinshui/task-progress.vue')
        },
        {
          path: 'task-customer',
          name: 'Task_CustomerList',
          meta: {
            keepAlive: true,
            title: '客户任务',
            access: ['Task_CustomerList']
          },
          component: () => import('@/view/third-party-platform/anxinshui/task-customer.vue')
        },
        {
          path: 'task-contract',
          name: 'Task_ContractList',
          meta: {
            keepAlive: true,
            title: '合同任务',
            access: ['Task_ContractList']
          },
          component: () => import('@/view/third-party-platform/anxinshui/task-contract.vue')
        },
        {
          path: 'task-plan',
          name: 'Task_PlanList',
          meta: {
            keepAlive: true,
            title: '薪酬方案任务',
            access: ['Task_PlanList']
          },
          component: () => import('@/view/third-party-platform/anxinshui/task-plan.vue')
        },
        {
          path: 'task-employee',
          name: 'Task_EmployeeList',
          meta: {
            keepAlive: true,
            title: '员工任务',
            access: ['Task_EmployeeList']
          },
          component: () => import('@/view/third-party-platform/anxinshui/task-employee.vue')
        },
        {
          path: 'task-salary',
          name: 'Task_CustomerSalaryList',
          meta: {
            keepAlive: true,
            title: '薪资任务',
            access: ['Task_CustomerSalaryList']
          },
          component: () => import('@/view/third-party-platform/anxinshui/task-salary.vue')
        },
        {
          path: 'task-info',
          name: 'Task_DetailList',
          meta: {
            keepAlive: true,
            title: '任务信息',
            access: ['Task_DetailList']
          },
          component: () => import('@/view/third-party-platform/anxinshui/task-info.vue')
        }
      ]
    }
  ]
}

export default thirdPartyPlatformRouter;